# X = 99

import random


def f1():
    fs = []
    for i in range(3):
        state = random.randint(1, 1000)
        def f2(state=state):
            print(state)
        fs.append(f2)
    return fs


actions = f1()

actions[0]()
actions[1]()
actions[2]()


